<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/static/member/themes/YouErJiaoYu/header.jsp" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
<link href="${ctxStatic}/jquery-mobile/css/jquery.mobile-1.3.1.min.css" type="text/css" rel="stylesheet" />
<link href="${ctxStatic}/member/themes/YouErJiaoYu/stilearn-helper.css" type="text/css" rel="stylesheet" />
<title>查看课程表</title>
<script type="text/javascript">

$(document).ready(function() {
	$("#errorMessage").hide()
});

</script>
</head>
<body>



<c:if test="${errorMessage!=null }">${errorMessage }</c:if>
<c:if test="${errorMessage==null }">

					<div class="row-fluid">
                           <div class="span12">
                               <div class="panel-group" id="accordion">
                               	<c:forEach items="${ list}" var="var" varStatus="varStatus">
                                   <div class="panel panel-default" >
                                       <div class="panel-heading " data-toggle="collapse" data-parent="#accordion" href="#collapse${varStatus.count }">
                                           <a class="accordion-toggle" >
                                               <c:if test="${varStatus.count==1 }">星期一</c:if>
                                                <c:if test="${varStatus.count==2 }">星期二</c:if>
                                                 <c:if test="${varStatus.count==3 }">星期三</c:if>
                                                  <c:if test="${varStatus.count==4 }">星期四</c:if>
                                                   <c:if test="${varStatus.count==5 }">星期五</c:if>
                                                   <c:if test="${varStatus.count==6 }">星期六</c:if>
                                                   <c:if test="${varStatus.count==7 }">星期日</c:if>
                                           </a>
                                       </div>
                                       <div id="collapse${varStatus.count }" class="panel-collapse collapse">
                                           <div class="panel-body">
                                               <div class="list-group">
                                               	<c:forEach items="${var}" var="Syllabus">
										  <a href="#" class="list-group-item">
										    ${fn:substring(Syllabus.classhour.startTime, 0, fn:length(Syllabus.classhour.startTime)-3)}-${fn:substring(Syllabus.classhour.endTime, 0, fn:length(Syllabus.classhour.endTime)-3)}    ${Syllabus.course.name }
										  </a>
									</c:forEach>
                                           </div>
                                       </div>
                                   </div>
                                   </div>
                                   </c:forEach>
                               </div>
                           </div>
                       </div>
</c:if>
</body>


<jsp:include page="./footer.jsp"></jsp:include>
</html>